<template>
    <div class="tabbar">
        <div class="ttt" v-if="this.$route.path == '/activity'">
            <img class="tabbarimg" src="@/assets/images/home/首页-底部导航.png" alt="">
        </div>
        <div class="ttt" v-if="this.$route.path == '/mine'"> <img class="tabbarimg" src="@/assets/images/user/我的-导航栏.png" alt="">
        </div>
        <div class="stybtn">
            <div class="style-btn" @click="gohome()"></div>
            <div class="style-btn" @click="gouser()"></div>
        </div>
    </div>
</template>
<script>
export default {
    mounted() {
        console.log(this.$route.path == '/activity')
    },
    methods:{
        gohome() {
            this.$router.push('/activity')
        },
        gouser(){
            this.$router.push('/mine')
        }
    }
}
</script>
<style>
.stybtn{
    width: 100%;
    height: 60px;
    position: absolute;
    bottom: 0;
    z-index: 2;
    display: flex;
    
}
.style-btn{
    width: 100%;
    height: 100%;
    flex: 1;
}
.tabbar {
    width: 375px;
    height: 60px;
    position: absolute;
    bottom: 0;
}
.ttt{
    display: block;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
}

.tabbarimg {
    width: 100%;
    height: 100%;
}
</style>